<?php include 'frame-top.php'; ?>

<div class="segm" style="border-bottom:1px solid #ccc;margin-bottom:10px;">
	<h2>修改个人空间</h2>
</div>

<!-- intro -->
<div class="segm">
	<form method="post" action="/member/upload"
			 enctype="multipart/form-data">
		<input type="hidden" name="MAX_FILE_SIZE" value="3100000" />
		<p>增加文件：3M以内：<input type="file" name="file" /> |
			<input type="submit" value="submit" /></p>
	</form>
	<p style="color:#f00"><?= $this->msg; ?>&nbsp;</p>
	<h3>Uploaded files list:</h3>
	<ul>
<?php foreach ($this->files as $val) : ?>
<?php $user = auth::user();
	$url = "http://home.jlu-softlab.cn/$user/$val";
?><!-- content -->
	<li><a href="/pub/teacher/<?= $user; ?>/<?= $val; ?>"
			target="_blank"><?=$url?></a> |
		<input type="button" value="del"
			onclick="del_teacher_page('<?= $val; ?>')" />
	</li>
<?php endforeach; ?>
	</ul>

	<div class="clear"></div>
</div> <!-- end of intro -->

<?php include 'frame-bottom.php'; ?>
